package com.hyt.it.ogt.pj.enums;

/**
 * 是否回评枚举
 * （0：关闭， 1：开启）
 *
 * @author liying
 */
public enum RejudgeEnums {

    MARK_TYPE_UNALLOW_REVIEW("0", "不允许回评"),
    MARK_TYPE_ALLOW_REVIEW("1", "允许回评"),
    ;
    private String code;
    private String desc;

    RejudgeEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static RejudgeEnums getrejudgeEnumsByCode(String code) {
        for (RejudgeEnums markTypeEnums : RejudgeEnums.values()) {
            if (markTypeEnums.getCode().equals(code)) {
                return markTypeEnums;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }
}
